//
//  HeadButton.m
//  XDLBaseProject
//
//  Created by 谢东来 on 2019/9/5.
//  Copyright © 2019 Apple. All rights reserved.
//

#import "HeadButton.h"

@implementation HeadButton

- (instancetype)init{
    if (self = [super init]) {
        self.layer.borderWidth = Width_Real(3);
        self.layer.borderColor = [UIColor whiteColor].CGColor;
    }
    return self;
}

- (void)setSelected:(BOOL)selected {
    [super setSelected:selected];
    if (selected) {
        self.layer.borderColor = [AppColor getColor_MAIN].CGColor;
    } else {
        self.layer.borderColor = [UIColor whiteColor].CGColor;
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
